import { createStore,combineReducers } from "redux";
import { composeWithDevTools } from 'redux-devtools-extension'
import todoReducer from './todoReducer'
import weatherReducer from "./weatherDataReducer";
// -----将多个reducer合并-----
const allReducers = combineReducers({
    weatherReducer,
    todoReducer
})
// 创建store并导出   传入reducer, 开发者工具支持包
export default createStore(allReducers, composeWithDevTools())
